package kr.saeildamil.androidStudy_second;

import kr.saeildamil.androidStudy_second.actionbar.ActionBarMain;
import kr.saeildamil.androidStudy_second.ani.Ch23AniMain;
import kr.saeildamil.androidStudy_second.brservice.Ch29BRMain;
import kr.saeildamil.androidStudy_second.draw.DrawMain;
import kr.saeildamil.androidStudy_second.fileio.Ch25FileIOMain;
import kr.saeildamil.androidStudy_second.fragment.FragmentMain;
import kr.saeildamil.androidStudy_second.fragment.clipboard.Ch27ClipMain;
import kr.saeildamil.androidStudy_second.fragment.cp.Ch26CPMain;
import kr.saeildamil.androidStudy_second.fragment.network.Ch28NetMain;
import kr.saeildamil.androidStudy_second.gesture.Ch31Main;
import kr.saeildamil.androidStudy_second.multimedia.Ch33Main;
import kr.saeildamil.androidStudy_second.valueani.Ch24ValueAniMain;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
	}

	public void mOnClick(View v) {
		Intent intent = new Intent();

		switch (v.getId()) {
		case R.id.main_btn01:
			intent.setClass(this, FragmentMain.class);
			break;
		case R.id.main_btn02:
			intent.setClass(this, ActionBarMain.class);
			break;
		case R.id.main_btn03:
			intent.setClass(this, DrawMain.class);
			break;
		case R.id.main_btn04:
			intent.setClass(this, Ch23AniMain.class);
			break;
		case R.id.main_btn05:
			intent.setClass(this, Ch24ValueAniMain.class);
			break;
		case R.id.main_btn06:
			intent.setClass(this, Ch25FileIOMain.class);
			break;
		case R.id.main_btn07:
			intent.setClass(this, Ch26CPMain.class);
			break;
		case R.id.main_btn08:
			intent.setClass(this, Ch27ClipMain.class);
			break;
		case R.id.main_btn09:
			intent.setClass(this, Ch28NetMain.class);
			break;
		case R.id.main_btn10:
			intent.setClass(this, Ch29BRMain.class);
			break;
		case R.id.main_btn11:
			intent.setClass(this, Ch31Main.class);
			break;
		case R.id.main_btn12:
			intent.setClass(this, Ch33Main.class);
			break;
		}

		startActivity(intent);
	}

}
